package com.deryun.tyl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.deryun.tyl.bean.ContentMessage;
import com.deryun.tyl.bean.tempBean.FriendConnect;
import com.deryun.tyl.bean.tempBean.MyPublish;
import com.deryun.tyl.dao.impl.ContentMessageDaoImpl;

@Service("contentMessageServiceImpl")
public class ContentMessageServiceImpl {

	@Resource(name="contentMessageDaoImpl")
	private ContentMessageDaoImpl dao;
	
	public List<ContentMessage> getAll(String userId){
		return dao.getAll(userId);
	}
	
	public List<ContentMessage> getAdminAll(){
		return dao.getAdminAll();
	}
	
	public MyPublish getCount(String userId){
		return dao.getCount(userId);
	}
	
	public MyPublish getAdminCount(){
		return dao.getAdminCount();
	}
	
	public MyPublish getAdminAuthCount(){
		return dao.getAdminAuthCount();
	}
	
	public List<ContentMessage> getAdminAuthCM(){
		return dao.getAdminAuthCM();
	}
	
	public int addCM(ContentMessage message){
		return dao.addCM(message);
	}
	
	public ContentMessage getCM(int id){
		return dao.getCM(id);
	}
	
	public int deleteCM(int id){
		return dao.deleteCM(id);
	}
	
	public int modifyCM(ContentMessage message){
		return dao.modifyCM(message);
	}
	
	public int delCMInfo(){
		return dao.delCMInfo();
	}
	
    public int accessCM(int id){
    	return dao.accessCM(id);
    }
	
	public int refuseCM(int id){
		return dao.refuseCM(id);
	}
	
	public List<ContentMessage> searchCM(String plate,String title){
		return dao.searchCM(plate, title);
	}
	
	public List<ContentMessage> getSixCM(){
		return dao.getSixCM();
	}
	
	public List<ContentMessage> getCMByPlate(String plate){
		return dao.getCMByPlate(plate);
	}
	
	public List<FriendConnect> getFC(){
		return dao.getFC();
	}
	
	public int modifyFC(String title,String address,String position){
		return dao.modifyFC(title,address,position);
	}
	
	public List<ContentMessage> getProductType(){
		return dao.getProductType();
	}
	
	public ContentMessage getOnekeyInfo(){
		return dao.getOnekeyInfo();
	}
	
	public List<ContentMessage> getSixKX(){
		return dao.getSixKX();
	}
	
	public List<ContentMessage> searchVCM(String startTime,String endtime,String grade,String plate,String title){
		return dao.searchVCM(startTime, endtime, grade,plate, title);
	}
	
	public List<ContentMessage> getSixRZ(){
		return dao.getSixRZ();
	}
	
	public List<ContentMessage> searchZFCG(ContentMessage message){
		return dao.searchZFCG(message);
	}
}
